var page = chrome.extension.getBackgroundPage();
var console = page.console;

